<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{{ url_for('static',filename='js/ueditor/themes/default/css/ueditor.min.css') }}"
          media="all">
    <script>
        window.UEDITOR_HOME_URL = "{{ url_for('static',filename='js/ueditor/') }}";
    </script>
    <script src="{{ url_for('static',filename='js/ueditor/ueditor.config.js') }}"></script>
    <script src="{{ url_for('static',filename='js/ueditor/ueditor.all.min.js') }}"></script>
</head>
<body>

<script type="text/plain" id="content"></script>

</body>
</html>
<script type="text/javascript">
    var editor = UE.getEditor('content',
        {
            serverUrl: "{{ url_for('upload.upload_ueditor') }}",
            initialFrameHeight: 480,
            // toolbars: [[
            //     'fullscreen', 'source', '|', 'undo', 'redo', '|',
            //     'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
            //     'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
            //     'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
            //     'directionalityltr', 'directionalityrtl', 'indent', '|',
            //     'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
            //     'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
            //     'simpleupload', 'insertimage', 'emotion', 'insertvideo', 'attachment', 'map', 'pagebreak', '|',
            //     'horizontal', 'date', 'time', 'spechars', 'wordimage', '|',
            //     'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
            //     'searchreplace'
            // ]]

        });
</script>